package hostOj;

/**
 * All rights Reserved, Designed By www.tusdao.com
 *
 * @version V1.0
 * @Title: DealWords
 * @Package myTest
 * @Description: TODO(一句话描述类是干嘛的)
 * @author: tusxxw
 * @date: 2020/12/11
 * @Copyright: 2020 www.tbs.com Inc. All rights reserved.
 * <p>
 * 注意：本内容仅限于TBS项目组内部传阅，禁止外泄以及用于其他的商业目的
 */

import java.util.Scanner;

/**
    网上摘抄的英文句子，复制粘贴后变了格式，请你帮忙恢复它.需要注意标点符号
    NiceToMeetYou.NiceToMeetYou,Too.
    AStudentIsGreat.
 */
public class DealWords {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String str = sc.next();
        char[] chars = str.toCharArray();
        System.out.print(chars[0]);
        for (int i = 1; i < chars.length; i++) {
            if (chars[i] >= 'A' && chars[i]<= 'Z'){
                System.out.print(" " + chars[i]);
                continue;
            }
            System.out.print(chars[i]);
        }
    }
}
